<%@ page import="java.util.List" %>
<%@ page import="com.question" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/24 0024
  Time: 14:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<center>
    <form action="/web4/kaoshiresult">
    <table border="" align="center">
        <tr align="center">
            <td>序号</td>
            <td>问题</td>
            <td>A</td>
            <td>B</td>
            <td>C</td>
            <td>D</td>
            <td>答案</td>
        </tr>
    <%
        int i=1;
        List<question>list= (List<question>) session.getAttribute("keyl");
        for (question q:list
             ) {
    %>
        <tr>
            <td><%=i%></td>
            <td style="width: 35%"><%=q.getTitle()%></td>
            <td style="width: 10%"><%=q.getA()%></td>
            <td style="width: 10%"><%=q.getB()%></td>
            <td style="width: 10%"><%=q.getC()%></td>
            <td style="width: 10%"><%=q.getD()%></td>
            <td ><input type="radio" name="<%=q.getQuestionid()%>" value="A">A
                 <input type="radio" name="<%=q.getQuestionid()%>" value="B">B
                 <input type="radio" name="<%=q.getQuestionid()%>" value="C">C
                 <input type="radio" name="<%=q.getQuestionid()%>" value="D">D</td>
        </tr>
    <%i++;}
    %>
        <tr align="center">
            <td colspan="3"><input type="submit"value="交卷"></td>
            <td colspan="4"><input type="reset"value="重做"></td>
        </tr>
    </table>
    </form>
</center>
</body>
</html>
